package edu.gdkm.iodemo;

import java.io.*;
import java.util.Scanner;

public class InputDemo {
    public static void main(String[] args) throws IOException {
        //实现文本输入
        System.out.println("请输入您的姓名：");
        InputStream inputStream = System.in;
//        String name1=String.valueOf((char)inputStream.read());
//        System.out.println(name1);
        BufferedReader br=new BufferedReader(new InputStreamReader(inputStream));
        String name2=String.valueOf((char)br.read());
        System.out.println(name2);

    }
}
